home *** CD-ROM | disk | FTP | other *** search
Wrap
; Install Genics Companion release 1, v1.0 ; $VER: InstallMe v1.0 ; Script by Ben Matthew 31-05-98 (message (cat "Welcome to the Photogenics Companion installation!\n\n" "This package has been produced to further your\n" "enjoyment of Photogenics 2 by making a few changes\n" "to your current setup. Amongst these changes is a\n" "patch to v2b. You MUST have your original disc or\n" "disks to hand in order to apply this patch as it will\n" "only work with the original program\n\n" "All other changes will work without the patch...\n" ) ) (message (cat "Photogenics Companion Release 1 for Photogenics II\n" "--------------------------------------------------\n\n" "By Ben Matthew, 1st June 1998.\n\n" "All original copyrights are acknowledged\n\n" "Photogenics is Copyright © 1996-7 by Almathera and\n" "Paul Nolan. All rights reserved\n\n" "This update is freely distributable but has been released\n" "under the genre of GuiltWare. Please see help files\n" ) ) (set DestDir (askdir (prompt ("Where do you have Photogenics 2 installed?")) (default "Photogenics:") (help "Simply locate the folder on your hard disk where Genics II is") )) (set SourceDir (askdir (prompt ("Where is your original Photogenics disc?")) (default "PGSCD:") (help "Simply locate the folder on your hard disk where Genics II is") )) (set FPU (askchoice (choices "Yes" "No") (prompt "Do you have a FPU on your machine?") (help "If you have a full 68040 (not 680EC40 or 680LC40) or a 68060 then you will have a FPU. If you have a 68030 accelerator (such as a Blizzard IV) you may or may not have a FPU. Check your user manual.") (default 0) ) ) ; FPU = 0, got a fpu. FPU = 1, no fpu (set OPTS (askoptions (choices "Patch Exe to 2b" "Update GIOs" "Update Effects" "Update Help Files" "Update Widget Interface") (prompt "What parts of the installation do you want to do?") (help "No help") (default 31) ) ) (if (IN OPTS 0) ( ; Patch exe ; (copyfiles (confirm) (prompt "Backing up old Executable...") (help "None") (source (tackon DestDir "photogenics")) (dest DestDir) (newname "photogenics.old") (infos) (optional "nofail") ) ; (run (cat "spatch -o" ; (tackon DestDir "photogenics ") ; "-pPatch_2_To_2b.pch " ; (tackon SourceDir "photogenics") ; ) ; ; (prompt "Patching main executable...") ; (confirm) ; (help "None") ; ) (message (cat "-- Important Notice -- \n\n" "I have received some nasty bug reports about the main\n" "2b patch and so have decided to remove it from this\n" "compilation for the time being...\n\n" "However the patch is still supplied (albeit without\n" "the installer) so die-hards are welcome to try it out\n" "- but with a strong warning that you computer may\n" "decided to spontaneously reboot without provacation!\n\n" "All the rest of this distribution is solid however and\n" "you should not have any concerns about installing....\n" ) ) (copyfiles (prompt "Updating rexx library...") (source "data/libs/pgsrexx.library") (dest (tackon DestDir "data/libs")) (optional "nofail") (confirm) (help "None") ) (if (= FPU 0) (copyfiles (prompt "Updating main library (FPU version)") (source "data/libs/pgs.libraryFPU") (dest (tackon DestDir "data/libs")) (newname "pgs.library") (optional "nofail") (confirm) (help "None") ) ) (if (= FPU 1) (copyfiles (prompt "Updating main library (Non-FPU version)") (source "data/libs/pgs.library") (dest (tackon DestDir "data/libs")) (newname "pgs.library") (optional "nofail") (confirm) (help "None") ) ) ) ) (if (IN OPTS 1) ( ; Update GIOs (copyfiles (prompt "Updating GIOs...") (source "data/gio") (files) (infos) (pattern "#?") (confirm) (help "None") (dest (tackon DestDir "data/gio")) ) ) ) (if (IN OPTS 2) ( ; Update Fx (copyfiles (prompt "Updating effects...") (source "data/effects") (files) (infos) (pattern "~(Fractal.efx)") (confirm) (help "None") (dest (tackon DestDir "data/effects")) ) (if (= FPU 0) (copyfiles (prompt "Updating special Fractal effect (FPU)...") (confirm) (help "None") (source "data/effects/Fractal.efx") (dest (tackon DestDir "data/effects") ) ) ) ) ) (if (IN OPTS 3) ( ; Update Help (copyfiles (prompt "Updating help files...") (source "data/help") (files) (infos) (pattern "#?") (confirm) (help "None") (dest (tackon DestDir "data/help")) ) (copyfiles (prompt "Updating help files...") (source "data/help/efx") (files) (infos) (pattern "#?") (confirm) (help "None") (dest (tackon DestDir "data/help/efx")) ) (copyfiles (prompt "Updating help files...") (source "data/help/giorexx") (files) (infos) (pattern "#?") (confirm) (help "None") (dest (tackon DestDir "data/help/giorexx")) ) ) ) (if (IN OPTS 4) ( (copyfiles (prompt "Updating Widget...") (source "data/widget/Widget.library") (dest "SYS:Classes") (confirm) (help "None") ) (copyfiles (prompt "Updating Widget...") (source "data/widget/Widget") (files) (infos) (pattern "#?") (help "None") (dest "Sys:Classes/Widget") (confirm) ) (copyfiles (prompt "Updating Widget graphics...") (source "data/widget/wgtgfx") (files) (infos) (pattern "#?") (help "None") (dest "Sys:Classes/wgtgfx") (confirm) ) ) ) (message (cat "Companion has now been successfully installed!\n\n" "Please read the updated help files for info\n" "on the changes\n\n" "Also check out the Companion web pages at:\n" "http://www.bmatthew.demon.co.uk/genics/\n" "email: ben@bmatthew.demon.co.uk\n" ) )